const service = new Proxy(uni.$u.http, {
	get(target, name) {
		if (name === 'get') {
			return (url, params, config = {}) => {
				return target[name](url, Object.assign(config, {
					params
				}))
			}
		} else {
			return Reflect.get(target, name);
		}
	},
})

export default service;
